Optimal. Leaf size=229 \[ -\frac {b \left (2 b^2 (2+p)+a^2 \left (11+6 p+p^2\right )\right ) (e \cos (c+d x))^{1+p}}{d e (1+p) (2+p) (3+p)}-\frac {a \left (3 b^2+a^2 (2+p)\right ) (e \cos (c+d x))^{1+p} \, _2F_1\left (\frac {1}{2},\frac {1+p}{2};\frac {3+p}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d e (1+p) (2+p) \sqrt {\sin ^2(c+d x)}}-\frac {a b (5+p) (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))}{d e (2+p) (3+p)}-\frac {b (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))^2}{d e (3+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2771, 2941,
2748, 2722} \begin {gather*} -\frac {a \left (a^2 (p+2)+3 b^2\right ) \sin (c+d x) (e \cos (c+d x))^{p+1} \, _2F_1\left (\frac {1}{2},\frac {p+1}{2};\frac {p+3}{2};\cos ^2(c+d x)\right )}{d e (p+1) (p+2) \sqrt {\sin ^2(c+d x)}}-\frac {b \left (a^2 \left (p^2+6 p+11\right )+2 b^2 (p+2)\right ) (e \cos (c+d x))^{p+1}}{d e (p+1) (p+2) (p+3)}-\frac {b (a+b \sin (c+d x))^2 (e \cos (c+d x))^{p+1}}{d e (p+3)}-\frac {a b (p+5) (a+b \sin (c+d x)) (e \cos (c+d x))^{p+1}}{d e (p+2) (p+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2722
Rule 2748
Rule 2771
Rule 2941
Rubi steps
\begin {align*} \int (e \cos (c+d x))^p (a+b \sin (c+d x))^3 \, dx &=-\frac {b (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))^2}{d e (3+p)}+\frac {\int (e \cos (c+d x))^p (a+b \sin (c+d x)) \left (2 b^2+a^2 (3+p)+a b (5+p) \sin (c+d x)\right ) \, dx}{3+p}\\ &=-\frac {a b (5+p) (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))}{d e (2+p) (3+p)}-\frac {b (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))^2}{d e (3+p)}+\frac {\int (e \cos (c+d x))^p \left (a (3+p) \left (3 b^2+a^2 (2+p)\right )+b \left (2 b^2 (2+p)+a^2 \left (11+6 p+p^2\right )\right ) \sin (c+d x)\right ) \, dx}{6+5 p+p^2}\\ &=-\frac {b \left (2 b^2 (2+p)+a^2 \left (11+6 p+p^2\right )\right ) (e \cos (c+d x))^{1+p}}{d e (1+p) \left (6+5 p+p^2\right )}-\frac {a b (5+p) (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))}{d e (2+p) (3+p)}-\frac {b (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))^2}{d e (3+p)}+\left (a \left (a^2+\frac {3 b^2}{2+p}\right )\right ) \int (e \cos (c+d x))^p \, dx\\ &=-\frac {b \left (2 b^2 (2+p)+a^2 \left (11+6 p+p^2\right )\right ) (e \cos (c+d x))^{1+p}}{d e (1+p) \left (6+5 p+p^2\right )}-\frac {a \left (a^2+\frac {3 b^2}{2+p}\right ) (e \cos (c+d x))^{1+p} \, _2F_1\left (\frac {1}{2},\frac {1+p}{2};\frac {3+p}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d e (1+p) \sqrt {\sin ^2(c+d x)}}-\frac {a b (5+p) (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))}{d e (2+p) (3+p)}-\frac {b (e \cos (c+d x))^{1+p} (a+b \sin (c+d x))^2}{d e (3+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 55.71, size = 17703, normalized size = 77.31 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.46, size = 0, normalized size = 0.00 \[\int \left (e \cos \left (d x +c \right )\right )^{p} \left (a +b \sin \left (d x +c \right )\right )^{3}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (e \cos {\left (c + d x \right )}\right )^{p} \left (a + b \sin {\left (c + d x \right )}\right )^{3}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (e\,\cos \left (c+d\,x\right )\right )}^p\,{\left (a+b\,\sin \left (c+d\,x\right )\right )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________